import 'package:flutter/material.dart';
import 'package:flutter_base/utils/log/utils_log.dart';

import '../controller/base_controller.dart';

mixin BaseLifeCycleMixin on BaseController {
  AppLifecycleState? appLifecycleState;

  @override
  void didChangeAppLifecycleState(AppLifecycleState s) {
    super.didChangeAppLifecycleState(s);
    appLifecycleState = s;
  }

  @override
  void onDetached() {
    clog("[LifeCycle]====>onDetached");
  }

  @override
  void onHidden() {
    clog("[LifeCycle]====>onHidden");
  }

  @override
  void onInactive() {
    clog("[LifeCycle]====>onInactive");
  }

  @override
  void onPaused() {
    clog("[LifeCycle]====>onPaused");
  }

  @override
  void onResumed() {
    clog("[LifeCycle]====>onResumed");
  }
}
